<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponCateAddDeleteAt extends Migrator
{
    public function up()
    {
        $this->table('coupon_cate')->addColumn("deleted_at","datetime",['null' => true,'comment'=>"删除时间"])->save();
    }

    public function down()
    {
        $this->table('coupon_cate')->removeColumn("deleted_at");
    }
}
